<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>13-14.JS函数-事件</title>
</head>
<body>
    <button onclick=" hello_param('lucy!')"> 点击此处 </button>

    <nav>
        <button onblur="hello_param('Blur 1')"> 1 </button>
        <button onfocus="hello_param('focus 2')"> 2 </button>
    </nav>

    <input type="text" onchange="">

    <script>
        function hello_param(name) {
            console.log('hello, '+name);
        }

        hello_param('lucy!');
    </script>
</body>
</html>